package com.wang.lottery.infrastucture.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wang.lottery.domain.activity.model.po.Activity;
import com.wang.lottery.domain.activity.model.po.Award;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author wjh
 * @create 2023-08-21 14:02
 * 奖品信息表Mapper
 */
@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {

    /**
     * 查询奖品信息
     *
     * @param activityId 奖品ID
     * @return        奖品信息
     */
    Activity queryActivityById(Long activityId);

    /**
     * 插入奖品配置
     *
     * @param awardList 奖品配置
     */
    void insertList(List<Award> awardList);

    
}
